package com.youbug.mall.ware_wms.controller;


import com.youbug.common.vo.FareVo;
import com.youbug.common.vo.R;
import com.youbug.mall.ware_wms.service.IWmsWareInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 仓库信息 前端控制器
 * </p>
 *
 * @author youbug
 * @since 2024-05-01
 */
@RestController
@RequestMapping("/api/wmsApiWareInfo")
public class WmsApiWareInfoController {
    @Autowired
    private IWmsWareInfoService wmsWareInfoService;

    @GetMapping("/fare")
    public R<FareVo> getFare(@RequestParam("addrId") Long addrId){

        FareVo fareVo = wmsWareInfoService.getFare(addrId);

        return R.ok(fareVo);
    }
}

